// const map = new Map([ ['age', 18], ['name', 'zg'] ]);
// const obj = Object.fromEntries(map);
// console.log(obj); 

const arr = [ ['0', 'a'], ['1', 'b'], ['2', 'c'] ];
const obj = Object.fromEntries(arr);
console.log(obj); 
// { 0: "a", 1: "b", 2: "c" }
